<template>
    <div class="card">
        <h3>{{type}}</h3>
        <slot name="center">center 等待填充</slot>
        <slot name="footer">footer 等待填充</slot>
    </div>
</template>

<script>
export default {
    name: 'Category',
    props: ['type']
}
</script>

<style scoped>

.container .card {
    width: 200px;
    height: 300px;
    background-color: skyblue;
}
.container .card h3 {
    text-align: center;
    background-color: orange;
}
</style>